import { request } from "../../../utils/request.js"


// 根据id查询address
export const queryAddresById = (params) => {
	return request({
		url: `/address/${params.id}`,
		method: 'GET',
		params
	})
}

// 根据id查询address
export const deleteAddresById = (params) => {
	return request({
		url: `/address/${params.id}`,
		method: 'DELETE',
		params
	})
}


// 新增地址接口
export const addAddressBook = (params) => {
	return request({
		url: '/address/save',
		method: 'POST',
		params
	})
}
